package com.book.bookmanager.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("demo")
public class DemoController {


	@GetMapping("demo")
	public String demo(Model model) {
		System.out.println("hello spring boot!");
		model.addAttribute("msg", "hello thymeleaf");
		return "demo";
	}
}